scripty2

class S2.UI.Behavior.Down

Description

Applies a down-state behavior. Adds a ui-state-down class to any non-disabled element on mousedown, removing it on mouseup.

Also applies these behaviors on keydown when the key is the space bar or the return key (since browsers differ on whether mousedown/up handlers fire in this situation).

Superclass